package com.xiao.androidcompose01.api.data

import android.os.Parcelable
import androidx.annotation.Keep
import kotlinx.parcelize.Parcelize
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable

@Parcelize
@Serializable
@Keep
data class AccountData(
   @SerialName("roleId")
   val roleId: String, //101:父
   @SerialName("sdkAppSecret")
   val sdkAppSecret: String, // 腾讯云SDK APP 密钥
   @SerialName("sdkAppId")
   val sdkAppId: Int, // 腾讯云SDK APP ID
   @SerialName("userId")
   val userId: String, //订单
   @SerialName("roomId")
   val roomId: String, //房间ID
   @SerialName("tlsSig")
   val tlsSig: String,//腾讯的用户签名，用以加入房间
   @SerialName("loginName")
   val loginName: String, //登录的手机号
   @SerialName("userName")
   val userName: String, //昵称
   @SerialName("sessionId")
   val sessionId: String,//会话ID
   @SerialName("childIds")
   val childIds:ArrayList<String>
) : Parcelable,java.io.Serializable {
   fun isParent(): Boolean{
      return roleId == "101"
   }
}
